﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace W.M.Materiel.Domain.Entity
{

    /// <summary>
    /// 采购订单表
    /// </summary>
    [SugarTable("purchase_order_table")]
    public class purchase_order_table
    {
        /// <summary>
        /// 采购订单ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "采购订单ID")]
        public int purchase_order_id { get; set; }

        /// <summary>
        /// 采购编号
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "采购编号")]
        public string? purchase_code { get; set; }

        /// <summary>
        /// 采购订单主题
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "采购订单主题")]
        public string? purchase_order_subject { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "供应商名称")]
        public string? supplier_name { get; set; }

        /// <summary>
        /// 采购日期
        /// </summary>
        [SugarColumn(ColumnDescription = "采购日期")]
        public DateTime date_purchase { get; set; }

        /// <summary>
        /// 物品概要
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "物品概要")]
        public string? item_summary { get; set; }

        /// <summary>
        /// 采购部门
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "采购部门")]
        public string? purchasing_department { get; set; }

        /// <summary>
        /// 采购人员
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "采购人员")]
        public string? purchasing_staff { get; set; }

        /// <summary>
        /// 总金额
        /// </summary>
        [SugarColumn(ColumnDescription = "总金额")]
        public decimal total_amount { get; set; }

        /// <summary>
        /// 已付金额
        /// </summary>
        [SugarColumn(ColumnDescription = "已付金额")]
        public decimal amount_paid { get; set; }

        /// <summary>
        /// 已到票金额
        /// </summary>
        [SugarColumn( ColumnDescription = "已到票金额")]
        public decimal ticket_amount_arrived { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        [SugarColumn(ColumnDescription = "审批状态")]
        public bool approval_status { get; set; }

        /// <summary>
        /// 入库
        /// </summary>
        [SugarColumn(ColumnDescription = "已入库")]
        public bool put_storage { get; set; }

        /// <summary>
        /// 到票
        /// </summary>
        [SugarColumn(ColumnDescription = "到货单")]
        public bool arrival_ticket { get; set; }

        /// <summary>
        /// 付款
        /// </summary>
        [SugarColumn(ColumnDescription = "付款")]
        public bool payment { get; set; }
    }
}
